
check

header("content-type:text/html;charset=utf-8");

<button class="login" onclick="rec1()" >登陆</button>

<button class="login" onclick="rec2()" >注册</button>

function rec1(){
window.location.href="./login.php";
}
function rec2(){
window.location.href="./register.php";
}